package com.cyq.day17.Demo3;

/**
 * 帖子类
 */
public class Tip {
    String tittle;
    String content;
    String publishTime;
    int uid;

    public Tip() {
    }

    public Tip(String tittle, String content, String publishTime, int uid) {
        this.tittle = tittle;
        this.content = content;
        this.publishTime = publishTime;
        this.uid = uid;
    }

    public void getInfo(){
        System.out.println("主题标题:"+"我会用继承了");
    }
}
